import axios from "@/axios"

export function login(username, password) {
    return axios.post("/login", {username, password})
}
//检查用户权限
export function loginrole() {
    return axios.post("/admin/loginrole")
}

export function getAdminInfo() {
    return axios.post("/admin/detail")
}

export function updateAdminPassword(data) {
    return axios.post("/admin/password/update", data)
}